The goal of this notebook is to provide instructions for:
Section I: Downloading GRACE & GLDAS Data (needs python >= 3.7)
Step 1: Register for an Account
To access the data, you need to register for an account at https://urs.earthdata.nasa.gov. Follow the instructions on the website to create your profile. Follow the instructions on the website to create your profile.
Step 2: To download both GRACE & GLDAS dataset, download the shell file from here. If you are only interested in downloading GRACE, download its shell file from here. If you are only interested in downloading GLDAS, download its shell file from here.
Step 3: Open the terminal and run echo `$HOME`
, then pwd
. Make sure the two locations are the same.
Step 4: Create and Configure .netrc File
To set up your .netrc
file for accessing https://urs.earthdata.nasa.gov, follow these steps:
.netrc
file at the desired location with the following commands:```bash{style=”background-color: #f0f0f0”} touch .netrc # creates the file nano .netrc # opens the file in the nano text editor
2. In the `.netrc` file, enter the following information:
```bash
machine urs.earthdata.nasa.gov
login <your username>
password <your password>
chmod +x download_data.sh
and press Enter.Step 5: Download the Dataset
To download the dataset using the downloaded shell file in the terminal, follow these steps:
chmod +x download_data.sh
and press Enter../download_data.sh
to initiate the download process.Step 6: The download will begin :D
Section II: Customising GRACE-FO and GLDAS Data
The shell file contains the path to download GRACE-FO data till 2023-06-23. If you want to download data for different time points, follow these steps to edit the start or end date in the shell file:
nano download_data.sh
Ctrl+O
and then confirm the filename with Enter
.Ctrl+X
.Locate the most recent GLDAS dataset or any other dataset you would like to download on https://search.earthdata.nasa.gov/ and click on it.
Once selected, press the green Download All
button. Then click Download Data
on the next screen.
Wait until the download is 100% ready.
Click on the Download Script
tab. Copy the provided shell script.
Open the previously downloaded shell script. Open it in any text editor (notepad, pages, etc.). Replace the GLDAS script with the one that you just copied. Save it.
Repeat Steps 3 till Steps 6 from Section I.